import React from 'react';
import './App.css';
import Layouts from './pages/layout/Layouts';
import Login from './pages/login/Login';
import { Switch, Route, Redirect } from 'react-router-dom';


function App() {
  return (
    <Switch>
      <Route path="/login" component={Login} />
      <Route path="/admin" component={Layouts}></Route>
      <Redirect from="/" exact to="/login"/>
      <Redirect from="/admin" to="/admin/home" />
    </Switch>
  );
}

export default App;
